package com.fernfx.xingtan.user.model;

import com.fernfx.xingtan.Constant;
import com.fernfx.xingtan.common.network.IRequestCallback;
import com.fernfx.xingtan.common.network.SJJNetworkProxy;
import com.fernfx.xingtan.user.contract.LoginContract;
import com.fernfx.xingtan.utils.FastJsonUtil;

import java.util.Map;

/**
 * Login model
 */

public class LoginModel implements LoginContract.Model{
    @Override
    public void request(Map<String, Object> requestArgsMap, IRequestCallback iRequestCallback) {
        String requestText = FastJsonUtil.BeanToJson(requestArgsMap);
        SJJNetworkProxy.getInstance().post(Constant.RequestArgs.LOGIN_URL,null,requestText,iRequestCallback);
    }
}
